package com.ruoyi.service.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;

import com.ruoyi.service.api.factory.RemoteServiceSortFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
@FeignClient(contextId = "remoteServiceSortService", value = ServiceNameConstants.SERVICE_SERVICE, fallbackFactory = RemoteServiceSortFallbackFactory.class)
public interface RemoteServiceSortService {
    @GetMapping(value = "/sort/{id}")
    AjaxResult getInfo(@PathVariable("id") Long id, @RequestHeader(SecurityConstants.INNER) String source);
}
